package org.dtrd.modules.content.tags.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.dtrd.modules.content.tags.entity.po.DtrdExtEmsYwTags;

import java.util.List;

/**
 * <p>
 * 标签 Mapper 接口
 * </p>
 *
 * @author QR
 * @since 2022-03-15
 */
@Mapper
public interface DtrdExtEmsYwTagsMapper extends BaseMapper<DtrdExtEmsYwTags> {

    /**
     * 通过某个分类的 pid 获取该 pid 分类下子分类的所有标签
     */
    List<DtrdExtEmsYwTags> selectTagsByTagPid(@Param("pid") Integer tagPid);

    List<String> selectPatientTags(@Param("pid") Integer patientId);
}
